import connection from "../mysql/connection.js";

export const getApp = () => {
  return new Promise((resolve, reject) => {
    connection.query("SELECT * from app WHERE id = 'car'", (err, result) => {
      if (err) {
        reject(err);
      } else {
        resolve(result[0]);
      }
    });
  });
};
